package com.chaopei.day07;

import java.io.Serializable;

/**
 * @Author Corday 天涯
 * @Date 2022/3/11 11:13
 * 读写对象,类要序列化
 */
public class User implements Serializable {
    private  String usernmae;
    private  String gender;
    public User(){}

    public User(String usernmae, String gender) {
        this.usernmae = usernmae;
        this.gender = gender;
    }
    public String getUsernmae() {
        return usernmae;
    }

    public void setUsernmae(String usernmae) {
        this.usernmae = usernmae;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
